//
//  XHEarningsCell.m
//  umibus
//
//  Created by 冷山 on 16/6/17.
//  Copyright © 2016年 lexingsoft. All rights reserved.
//

#import "XHEarningsCell.h"
#import "LXCircleAnimationView.h"
#import "UIView+Extensions.h"

#define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width)
#define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)

@interface XHEarningsCell()

@property (nonatomic, strong) LXCircleAnimationView *circleProgressView;

@end

@implementation XHEarningsCell

- (void)awakeFromNib {
    self.circleProgressView = [[LXCircleAnimationView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH/2-125, 10.f, 250, 250)];
    self.circleProgressView.bgImage = [UIImage imageNamed:@"backgroundImage"];
    self.circleProgressView.percent = 0.f;
    [self.circleProgressView setText:@"年化收益(%)"];
    [self addSubview:self.circleProgressView];
    
}
- (void)setRatio:(CGFloat)percent
{
    self.circleProgressView.percent = percent;
}

- (void)setNumber:(NSString *)text
{
    [self.circleProgressView setNumberText:text];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
